/**
 * @(#)Data.java
 *
 *
 * @author Mauro Celani
 * @version 1.00 2013/9/15
 */

import java.util.Date;

public class Data {
	
    private int GG;
    private int MM;
    private int AAAA;
	
    public Data(){
        Date d = new Date();
        setGG(d.getDay());
        setMM(d.getMonth());
        setAAAA(d.getYear());
    }
	
    public Data(int GG, int MM, int AAAA){
    	setGG(GG);
    	setMM(MM);
    	setAAAA(AAAA);
    }
    
    public int getGG()	{ return GG; }
    public int getMM()	{ return MM; }
    public int getAAAA(){ return AAAA; }
    
    public void setGG(int gg)		{ GG = gg; }
    public void setMM(int mm)		{ MM = mm; }
    public void setAAAA(int aaaa)	{ AAAA = aaaa; }
    
    public String toString(){
    	return GG+"/"+MM+"/"+AAAA;
    }
    
}